<?php

// Get the configuration
require 'config/config.php';

// Display errors in production mode
if (ENV == 'prod')
{
    error_reporting(0);
    ini_set('display_errors', 0);
}
else
{
    error_reporting(E_ALL);
    ini_set('display_errors', 1);
}

// Include the classes
require 'application/load.php';
require 'application/models/model.php';
require 'application/controller.php';

// Include the existing models

// Let's start the sessions
session_start();

// At last, create the front controller
new Controller();
